package modele.WorldElem;

import java.awt.Color;

import modele.Square;

public class Burning extends SecondaryState {

	private int burningTime;
	
	
	public Burning(){
		burningTime = 1;
	}
	
	@Override
	public int getSecondaryStateValue() {
		return SecondaryState.BURNING; 
	}

	
	public int getBurningTime() {
		return burningTime;
	}

	public void setBurningTime(int burningTime) {
		this.burningTime = burningTime;
	}

	@Override
	public int getAdditionalAltitude() {
		return 0;
	}

	@Override
	public Color getColor(Square s) {
		return new Color((int)(255+s.getAltitude())/2,0,0);
	}

	
	
}
